#include<stdio.h>
#include<unistd.h>
int main()
{
  //模拟孤儿进程
  pid_t id=fork();
  if(id>0)
  {

      printf("I am parent process\n");
  }
  if(id==0)
  {
   
   
    while(1)
    
      printf("I am child process\n");
 
  }

  return 0;
}
